<h1>Dodaj - Język</h1>

<form method="post" enctype="multipart/form-data">
	<input type="hidden" name="AddAction" value="1" />
	{mainoptions title="Informacje ogólne"}
			<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
			<tr>
				<th><strong>Nazwa:</strong></th>
				<td>
					<input type="text" value="{$obj->GetName()}" id="name" name="name"/>
					{if isset($error.name)}<p class="validate">{$error.name}</p>{/if}
				</td>
			</tr>
			<tr>
				<th><strong>Nazwa wyświetlana:</strong></th>
				<td>
					<input type="text" value="{$obj->getDisplayName()}" id="display_name" name="display_name"/>
					{if isset($error.displayName)}<p class="validate">{$error.displayName}</p>{/if}
				</td>
			</tr>	
			<tr>
				<th><strong>Kod:</strong></th>
				<td>
					<input type="text" value="{$obj->getCode()}" id="code" name="code"/>
					{if isset($error.code)}<p class="validate">{$error.code}</p>{/if}
				</td>
			</tr>			
			<tr>
				<th><strong>Aktywny:</strong></th>
				<td >
					<input type="checkbox" {if $obj->getActive()}checked="checked"{/if} id="active" name="active"/>
					{if isset($error.active)}<p class="validate">{$error.active}</p>{/if}
				</td>
			</tr>
			</table>
			{/mainoptions}

				{mainoptions}
	<input type="submit" value="Zapisz i przejdź do listy" />
	<input  type="button" value="Anuluj" onclick="document.location='{url language=index}'" />
			{/mainoptions}

</form>
